﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Models;
using BLL;

namespace my
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        supBLL sBLL = new supBLL();
        private void Form1_Load(object sender, EventArgs e)
        {
           
            // comboBox1.Items.Add(sBLL.haha());
            //comboBox1.Items.Add(sBLL.show());
            comboBox1.DataSource = sBLL.getTable();
            comboBox1.DisplayMember = "name";
            //comboBox1.Text = null;
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string hh = (comboBox1.SelectedItem).ToString();
            dataGridView1.DataSource = sBLL.getdata(hh);
        }
    }
}
